#include <nice2d/components/controllable.h>

IMPLEMENT_OBJECT(Controllable, Component)

class ControllableData
{
public:
    bool controllable = true;
};

Controllable::Controllable():
    data(new ControllableData())
{
}

Controllable::~Controllable()
{
}

void Controllable::setControllabel(bool control)
{
    data->controllable = control;
}

bool Controllable::isControllable() const
{
    return data->controllable;
}
